import { RouteRecordRaw } from "vue-router";

export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    component: () => import("../views/home/index.vue"),
    meta: {
      title: "首页",
      icon: "home-o", //菜单的图标
    },
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/login/index.vue"),
    meta: {
      hidden: true,
      icon: "home-o",
      title: "登录",
    },
  },
  {
    path: "/category",
    name: "Category",
    component: () => import("../views/category/index.vue"),
    meta: {
      title: "分类", //菜单的标题
      icon: "apps-o", //菜单的图标
    },
  },
  {
    path: "/pay",
    name: "Pay",
    component: () => import("../views/pay/index.vue"),
    meta: {
      hidden: true,
      title: "支付", //菜单的标题
      icon: "ele-HomeFilled", //菜单的图标
    },
  },
  {
    path: "/register",
    name: "Register",
    component: () => import("../views/register/index.vue"),
    meta: {
      hidden: true,
      icon: "home-o",
    },
  },
  {
    path: "/search",
    name: "Search",

    component: () => import("../views/search/index.vue"),
    meta: {
      title: "搜索", //菜单的标题
      icon: "ele-HomeFilled", //菜单的图标
      hidden: true,
    },
  },
  {
    path: "/shopcart",
    name: "Shopcart",
    component: () => import("../views/shopcart/index.vue"),
    meta: {
      title: "购物车", //菜单的标题
      icon: "cart-o", //菜单的图标
    },
  },
  {
    path: "/worthbuy",
    name: "Worthbuy",
    component: () => import("../views/worthbuy/index.vue"),
    meta: {
      title: "值得买", //菜单的标题
      icon: "gift-o", //菜单的图标
    },
  },
  {
    path: "/goods",
    name: "Goods",
    component: () => import("../views/goods/index.vue"),
    meta: {
      title: "商品列表", //菜单的标题
      hidden: true,
    },
  },
  {
    path: "/center",
    name: "Center",
    component: () => import("../views/center/index.vue"),
    meta: {
      title: "中心", //菜单的标题
      icon: "user-o", //菜单的图标
    },
  },
  {
    path: "/category",
    name: "Category",
    component: () => import("../views/category/index.vue"),
    meta: {
      title: "分类", //菜单的标题
      icon: "ele-HomeFilled", //菜单的图标
      hidden: true,

    },
  },
  {
    path: "/prodlist",
    name: "ProdList",
    component: () => import("../views/prodList/index.vue"),
    meta: {
      title: "商品列表", //菜单的标题
      // icon: "ele-HomeFilled", //菜单的图标
      hidden: true,
    },
  },
  {
    path: "/proddetail",
    name: "ProdDetail",
    component: () => import("../views/prodDetail/index.vue"),
    meta: {
      title: "商品详情", //菜单的标题
      // icon: "ele-HomeFilled", //菜单的图标
      hidden: true,
    },
  },
  {
    path: "/order",
    name: "Order",
    component: () => import("../views/order/index.vue"),
    meta: {
      title: "订单",
      hidden: true,

    },
  },
  {
    path: "/pay",
    name: "Pay",
    component: () => import("../views/pay/index.vue"),
    meta: {
      title: "支付", //菜单的标题
      icon: "ele-HomeFilled", //菜单的图标
      hidden: true,

    },
  }
  //   {
  //     path: "/404",
  //     name: "404",
  //     component: () => import("../views/error/404.vue"),
  //     meta: {
  //       hidden: true,
  //     },
  //   },
];
